<html>
<head><meta charset="utf-8"><title>bug parsing `match` · t-compiler/rust-analyzer · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/index.html">t-compiler/rust-analyzer</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/bug.20parsing.20.60match.60.html">bug parsing `match`</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="174048472"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/bug%20parsing%20%60match%60/near/174048472" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Alexander Regueiro <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/bug.20parsing.20.60match.60.html#174048472">(Aug 24 2019 at 17:58)</a>:</h4>
<p>I get an error with code like <code>match { stmts; expr } { arms... }</code></p>



<a name="174048477"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/bug%20parsing%20%60match%60/near/174048477" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Alexander Regueiro <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/bug.20parsing.20.60match.60.html#174048477">(Aug 24 2019 at 17:58)</a>:</h4>
<p>this is valid code of course</p>



<a name="174048483"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/bug%20parsing%20%60match%60/near/174048483" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Alexander Regueiro <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/bug.20parsing.20.60match.60.html#174048483">(Aug 24 2019 at 17:58)</a>:</h4>
<p><code>match</code> can be followed by any expr, including a block-expr</p>



<a name="174048562"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/bug%20parsing%20%60match%60/near/174048562" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> matklad <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/bug.20parsing.20.60match.60.html#174048562">(Aug 24 2019 at 18:00)</a>:</h4>
<p>Could you file an issue with a specific example? ;)</p>



<a name="174049245"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/bug%20parsing%20%60match%60/near/174049245" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Alexander Regueiro <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/bug.20parsing.20.60match.60.html#174049245">(Aug 24 2019 at 18:20)</a>:</h4>
<p>it works for you?</p>



<a name="174049276"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/bug%20parsing%20%60match%60/near/174049276" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Alexander Regueiro <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/bug.20parsing.20.60match.60.html#174049276">(Aug 24 2019 at 18:20)</a>:</h4>
<p>weird</p>



<a name="174050165"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/bug%20parsing%20%60match%60/near/174050165" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> matklad <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/bug.20parsing.20.60match.60.html#174050165">(Aug 24 2019 at 18:47)</a>:</h4>
<p>I don't know, I haven't checked yet, but creating an issue is a good first step for this being fixed in either case :)</p>



<a name="174052450"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/bug%20parsing%20%60match%60/near/174052450" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Alexander Regueiro <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/bug.20parsing.20.60match.60.html#174052450">(Aug 24 2019 at 19:58)</a>:</h4>
<p>hah okay.</p>



<a name="174052451"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/bug%20parsing%20%60match%60/near/174052451" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Alexander Regueiro <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/bug.20parsing.20.60match.60.html#174052451">(Aug 24 2019 at 19:58)</a>:</h4>
<p>I'm lazy, hence my inclination to do bug reports here, but if it really helps you, I'll do that (soonish) ;-)</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>